/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package Modele;

import java.util.Collection;

/**
 *
 * @author sio
 */
public class Dep implements Comparable<Dep> {

    private String num;
    private Collection<Medecin> lesMeds;

    public Dep(String num, Collection meds) {
        this.num = num;
        this.lesMeds = meds;
    }

    public String getNum() {
        return this.num;
    }

    public Collection<Medecin> getLesMedecins() {
        return this.lesMeds;
    }

    @Override
    public int compareTo(Dep o) {
        return num.compareTo(o.num);
    }
}
